package com.shf.lease.web.admin.controller.apartment.request;

import com.shf.lease.entity.ApartmentInfo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author 叶枫
 * @date 2024/7/5.
 */

@Data
@Schema(description = "公寓新增/修改实体")
public class ApartmentCmd extends ApartmentInfo {
    @Schema(description="公寓配套id")
    @NotBlank(message = "公寓id不能为空")
    private List<Long> facilityInfoIds;

    @NotBlank(message = "公寓id不能为空")
    @Schema(description="公寓标签id")
    private List<Long> labelIds;

    @NotBlank(message = "公寓杂费值id不能为空")
    @Schema(description="公寓杂费值id")
    private List<Long> feeValueIds;

    @NotBlank(message = "公寓图片不能为空")
    @Schema(description="公寓图片id")
    private List<GraphCmd> graphVoList;
}
